from distutils.core import setup, Extension
from distutils.dir_util import remove_tree
from glob import glob
import sys, os

try:
    import numpy as np
except ImportError:
    print "sdfsf"
    raise

ext_modules = []

packages = ['astrony', 'astrony.image', 'astrony.sdss']

# Files that contain Python code but are executables
# scripts = ['lib/astrony/moonSkyMag.py', 'lib/astrony/subtends.py']
        
skycalc_src = glob('src/skycalc/*.c')
skycalc_ext = Extension('astrony.skycalc._skycalc', 
                            sources=skycalc_src)
ext_modules.append(skycalc_ext)
packages.append('astrony.skycalc')

#include_dirs = [np.get_include()]
include_dirs = []

setup(name='astrony',
    description='Another Python astronomy package!',
    author='Adrian Price-Whelan',
    author_email='adrn@nyu.edu',
    url='http://code.google.com/p/astrony/',
    version='0.1.0',
    packages=packages,
    package_dir={'astrony': 'src'},
    ext_modules=ext_modules)